package com.example.qxfw.jtyb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.qxfw.common.entity.yj.DzWarning;
import com.example.qxfw.dzzh.mapper.DzWarningMapper;
import com.example.qxfw.jtyb.service.DzzhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class DzzhServiceImpl implements DzzhService {
    @Autowired
    private DzWarningMapper dzWarningMapper;

    @Override
    public List<DzWarning> selectByDatePeriodOfDzWarning(Date datecharStart, Date datecharEnd) {
        return dzWarningMapper.selectList(new LambdaQueryWrapper<DzWarning>()
        .between(DzWarning::getDatechar, datecharStart, datecharEnd));
    }
}
